import MenuView from '@/views/common/MenuView'
// import PageView from '@/views/common/PageView'
import LoginView from '@/views/login/Common'
import EmptyPageView from '@/views/common/EmptyPageView'
import HomePageView from '@/views/HomePage'
let constRouter = [
  {
    path: '/',
    hidden: true,
    redirect: '/index/home'
  },
  {
    path: '/login',
    name: '登录页',
    hidden: true,
    component: LoginView
  },
  {
    path: '/index',
    name: 'index',
    component: MenuView,
    redirect: '/index/home',
    icon: 'home',
    children: [
      {
        path: '/profile',
        name: '个人中心',
        hidden: true,
        component: () => import('@/views/personal/Profile.vue')
      },
      {
        name: 'home',
        path: '/index/home',
        hidden: true,
        component: HomePageView
      },
      {
        name: 'Exception401',
        path: '/exception/401',
        hidden: true,
        component: () => import(/* webpackChunkName: "Exception401" */ '@/views/error/401'),
        meta: { title: '401'}
      }
    ]
  },
  {
    path: '/bind',
    name: 'bindSetting',
    component: MenuView,
    redirect: '/bind/Setting',
    icon: 'user',
    hidden: true,
    children: [
      {
        name: 'bindSetting',
        path: '/bind/Setting',
        hidden: true,
        component: () => import('@/views/personal/bindSetting')
      },
      {
        name: '公告详情',
        path: '/bind/noticeView',
        component: () => import('@/views/personal/noticeView')
      }
    ]
  },
  {
    path: '/',
    name: '静态路由',
    component: MenuView,
    hidden: true,
    children: [
      {
        name: '学籍异动查看页',
        path: '/student/change/view',
        component: () => import('@/views/stuStatus/changeView')
      },
      {
        name: '专业实践申请审核',
        path: '/degree/professionalPractice/detail',
        component: () => import('@/views/degree/professionalPractice/detail')
      },
      {
        name: '实践结果评价审核',
        path: '/degree/practiceResult/detail',
        component: () => import('@/views/degree/practiceResult/detail')
      },
      {
        name: '调课申请',
        path: '/training/courses/schedule/transfer',
        component: () => import('@/views/cultivate/courses/tk')
      },
      {
        name: '调课详情',
        path: '/training/courses/schedule/transfer/detail',
        component: () => import('@/views/cultivate/courses/transferDetail')
      },
      {
        name: '学生详情',
        hidden: true,
        path: '/stuStatus/stuView',
        component: () => import('@/views/stuStatus/search/stuView'),
      }
    ]
  },
  // 查询统计
  {
    path: '/search',
    name: 'search',
    component: MenuView,
    redirect: '/stuStatus/stuList',
    icon: 'search',
    children: [
      {
        name: 'stuList',
        path: '/stuStatus/stuList',
        component: () => import('@/views/stuStatus/search/stuList')
      }
    ]
  },
    // 流程申请
    // {
    //   path: '/workflow',
    //   name: 'workflow',
    //   component: MenuView,
    //   redirect: '/workflow/shyjs',
    //   icon: 'radius-upleft',
    //   children: [
        
    //   ]
    // },
  // 学籍管理
  // {
  //   path: '/stuStatus',
  //   name: 'stuStatus',
  //   component: MenuView,
  //   icon: 'read',
  //   redirect: '/stuStatus/check',
  //   children: [
  //     {
  //       name: 'supplement',
  //       path: '/stuStatus/check',
  //       component: () => import('@/views/stuStatus/check/check')
  //     }
  //   ]
  // },
  // 培养管理
  {
    path: '/training',
    name: 'training',
    redirect: '/training/teacherInfo/modify',
    component: MenuView,
    icon: 'radius-upleft',
    children: [
      {
        name: 'teacherInfo',
        path: '/training/teacherInfo',
        icon: 'edit',
        component: EmptyPageView,
        children: [
          {
            name: 'modifyMentor',
            path: '/training/teacherInfo/modify',
            component: () => import('@/views/cultivate/teacherInfo/modifyMentor')
          }
        ]
      },
      // 培养计划
      {
        name: 'trainingPlan',
        path: '/training/plan',
        icon: 'snippets',
        component: EmptyPageView,
        children: [
          {
            name: 'trainingPlanReview',
            path: '/training/plan/check',
            component: () => import('@/views/cultivate/plan/check/review')
          },
          {
            name: 'trainingPlanReset',
            path: '/training/plan/reset',
            component: () => import('@/views/cultivate/plan/reset/reset')
          },
          {
            name: 'trainingPlanQuery',
            path: '/training/plan/query',
            component: () => import('@/views/cultivate/plan/query/query')
          },
        ]
      },
      // 排课管理
      {
        path: '/courses',
        name: 'courses',
        redirect: '/training/courses',
        component: EmptyPageView,
        icon: 'form',
        children: [
          {
            name: 'schedule',
            path: '/training/courses/schedule',
            component: () => import('@/views/cultivate/courses/schedule')
          },
          {
            name: 'attendLecture',
            path: '/training/courses/attend',
            component: () => import('@/views/cultivate/courses/attendLecture')
          },
          {
            name: 'tkList',
            path: '/training/courses/tkList',
            component: () => import('@/views/cultivate/courses/tkList')
          }
        ],
      },
      // 成绩管理
      {
        path: '/grade',
        name: 'gradeManagement',
        redirect: '/training/grade',
        component: EmptyPageView,
        icon: 'pic-center',
        children: [
          {
            name: 'singleEntry',
            path: '/training/grade/single',
            component: () => import('@/views/cultivate/grade/single/single')
          },
          {
            name: 'singleSubjectEntry',
            path: '/training/grade/singleSubject',
            component: () => import('@/views/cultivate/grade/singleSubject/singleSubject')
          },
          // {不合格成绩查询
          //   name: 'entryOfUnqualifiedResults',
          //   path: '/training/grade/entryOfUnqualifiedResults',
          //   component: () => import('@/views/cultivate/grade/entryOfUnqualifiedResults/entryOfUnqualifiedResults')
          // },
          {
            name: 'singlePrinted',
            path: '/training/grade/printed',
            component: () => import('@/views/cultivate/grade/printed/printed')
          },
          {
            name: 'courseEnquiry',
            path: '/training/grade/enquiry',
            component: () => import('@/views/cultivate/grade/enquiry/enquiry')
          },
          {
            name: 'resultsReleased',
            path: '/training/grade/released',
            component: () => import('@/views/cultivate/grade/released/released')
          },
          {
            name: 'slowSetting',
            hidden: true,   // 缓考暂时不做
            path: '/training/grade/slow',
            component: () => import('@/views/cultivate/grade/slow/slow')
          },
        ],
      },
      // 开题报告
      {
        path: '/report',
        name: 'openingReport',
        redirect: '/training/report',
        component: EmptyPageView,
        icon: 'contacts',
        children: [
          {
            name: 'reportReview',
            path: '/training/report/review',
            component: () => import('@/views/cultivate/report/review/review')
          },
          {
            name: 'reportInfoStatistics',
            path: '/training/report/statistics',
            component: () => import('@/views/cultivate/report/statistics/statistics')
          },
          {
            name: 'reportQuery',
            path: '/training/report/query',
            component: () => import('@/views/cultivate/report/query/query')
          }
        ],
      },
      // 中期考核
      {
        path: '/midExam',
        name: 'midTermExam',
        redirect: '/training/midExam',
        component: EmptyPageView,
        icon: 'align-left',
        children: [
          // {
          //   name: 'midTermExamTutorQuery',
          //   path: '/training/midExam/tutorQuery',
          //   component: () => import('@/views/cultivate/midExam/tutorQuery')
          // },
          {
            name: 'midTermExamTutorReview',
            path: '/training/midExam/review',
            component: () => import('@/views/cultivate/midExam/review/review')
          },
          {
            name: 'midTermExamInfoQuery',
            path: '/training/midExam/query',
            component: () => import('@/views/cultivate/midExam/query/query')
          },
          // {
          //   name: 'midTermExamStatistics',
          //   path: '/training/midExam/statistics',
          //   component: () => import('@/views/cultivate/midExam/statistics/statistics')
          // }
        ],
      },
      // 预答辩
      {
        path: '/reply',
        name: 'replyInAdvance',
        redirect: '/training/reply',
        component: EmptyPageView,
        icon: 'printer',
        children: [
          {
            name: 'tutorReviewsPreDefense',
            path: '/training/reply/review',
            component: () => import('@/views/cultivate/reply/review/review')
          },
          {
            name: 'preReplyInquiry',
            path: '/training/reply/inquire',
            component: () => import('@/views/cultivate/reply/inquire/inquire')
          },
        ]
      },
      // 论文管理
      {
        path: '/paper',
        name: 'paperManagement',
        redirect: '/training/paper',
        component: EmptyPageView,
        icon: 'bold',
        children: [
          {
            name: 'tutorReviewPaper',
            path: '/training/paper/review',
            component: () => import('@/views/cultivate/paper/check/review')
          },
          {
            name: 'paperInfoQuery',
            path: '/training/paper/query',
            component: () => import('@/views/cultivate/paper/query/query')
          },
        ]
      },
    ]
  },
  {
    path: '/degree',
    name: 'degreeMg',
    component: MenuView,
    redirect: '/degree/paperAudit',
    icon: 'experiment',
    children: [
      {
        name: 'degreePaper',
        path: '/degree/paperAudit',
        component: () => import('@/views/degree/paper/audit')
      },
    ]
  },
  {
    path: '/profession',
    name: 'profession',
    component: MenuView,
    redirect: '/profession/professionalPractice',
    icon: 'experiment',
    children: [
      {
        name: 'professionalPractice',
        path: '/profession/professionalPractice',
        component: () => import('@/views/degree/professionalPractice')
      },
      {
        name: 'professionalPracticePassed',
        path: '/profession/professionalPracticePassed',
        component: () => import('@/views/degree/professionalPractice/checkedList')
      },
      {
        name: 'practiceResult',
        path: '/profession/practiceResult',
        component: () => import('@/views/degree/practiceResult')
      },
      {
        name: 'practiceResultPassed',
        path: '/profession/practiceResultPassed',
        component: () => import('@/views/degree/practiceResult/checkedList')
      }
    ]
  },
  // 学生工作管理
  {
    path: '/management',
    name: 'management',
    component: MenuView,
    redirect: '/management/dormitory/accomRequirements',
    icon: 'contacts',
    children: [
      {
        name: 'dormitory',
        path: '/management/dormitory',
        icon: 'snippets',
        component: EmptyPageView,
        children: [
          {
            name: 'accomRequirements',
            path: '/management/dormitory/accomRequirements',
            component: () => import('@/views/dormitory/requirements/accomRequirements')
          },
          {
            name: 'reviewOutstayInfo',
            path: '/management/dormitory/reviewOutstay',
            component: () => import('@/views/dormitory/review/reviewOutstay')
          },
          {
            name: 'checkoutstayInfo',
            path: '/management/dormitory/checkOutstay',
            component: () => import('@/views/dormitory/query/checkOutstay')
          }
        ]
      },
      {
        name: 'stuChangeCheck',
        path: '/stuStatus/changeCheck',
        component: () => import('@/views/stuStatus/change/list')
      },
      {
        name: 'stuChangeMg',
        path: '/stuStatus/stuChangeMg',
        component: () => import('@/views/stuStatus/change/manageList')
      },
      {
        name: 'shjyssh',
        path: '/workflow/shyjs',
        component: () => import('@/views/workflow/shyjs/review')
      },
      {
        name:'projectsh',
        path:'/project/projectAdd',
        component: () => import('@/views/project/projectAdd')
      },
      {
        name:'reportCk',
        path:'/project/reportCk/reportCk',
        component: () => import('@/views/project/reportCk/reportCk')
      },
      {
        name:'inforReport',
        path:'/project/inforReport',
        component: () => import('@/views/project/inforReport')
      },
    ]
  },
  {
    path: '/teaEduManage',
    name: 'teaEduManage',
    component: MenuView,
    redirect: '/teaEduManage/stuEduSearch',
    icon: 'user',
    children: [
      {
        name: 'stuEduSearch',
        path: '/teaEduManage/stuEduSearch',
        component: () => import('@/views/teaEduManage/stuEduSearch')
      },
      // {
      //   name: 'superSubjectEdu',
      //   path: '/teaEduManage/superSubjectEdu',
      //   component: () => import('@/views/teaEduManage/superSubjectEdu')
      // },
      {
        name: 'ddEduSearch',
        path: '/teaEduManage/ddEduSearch',
        component: () => import('@/views/teaEduManage/ddEduSearch')
      }
    ]
  },
]

export default constRouter
